
const Layout=()=>import("../view/layout/Layout.vue")

// 定义pod相关的路由映射
export const  podRoutes ={
    path: "/pod",
    component: Layout,
    // 定义/namespace子路由
    // 访问/namespace自动跳转到list
    redirect: "/pod/list",
    children: [
        {
            path: "list",
            component: ()=>import('../view/pod/List.vue'),
        },
    ]
}
// 定义deployment相关的路由映射
export const  deploymentRoutes ={
    path: "/deployment",
    component: Layout,
    redirect: "/deployment/list",
    children: [
        {
            path: "list",
            component: ()=>import('../view/deployment/List.vue'),
        },
        {
            path: "create",
            component: ()=>import('../view/deployment/Create.vue'),
        },
    ]
}
// 定义statefulset相关的路由映射
export const  statefulSetRoutes ={
    path: "/statefulset",
    component: Layout,
    redirect: "/statefulset/list",
    children: [
        {
            path: "list",
            component: ()=>import('../view/statefulset/List.vue'),
        },
        {
            path: "create",
            component: ()=>import('../view/statefulset/Create.vue'),
        },
    ]
}
// 定义daemonset相关的路由映射
export const  daemonSetRoutes ={
    path: "/daemonset",
    component: Layout,
    redirect: "/daemonset/list",
    children: [
        {
            path: "list",
            component: ()=>import('../view/daemonset/List.vue'),
        },
        {
            path: "create",
            component: ()=>import('../view/daemonset/Create.vue'),
        },
    ]
}
// 定义cronjob相关的路由映射
export const  cronjobRoutes ={
    path: "/cronjob",
    component: Layout,
    redirect: "/cronjob/list",
    children: [
        {
            path: "list",
            component: ()=>import('../view/cronjob/List.vue'),
        },
        {
            path: "create",
            component: ()=>import('../view/cronjob/Create.vue'),
        },
    ]
}

